<?php
namespace api\controllers;
use yii\rest\ActiveController;

class ContactController extends BaseController
{
    public $modelClass = 'api\models\Contact';

    public function actions()
    {
        $actions = parent::actions();

        unset(
            $actions['update'], 
            $actions['delete']
        );
        $actions['create']['class'] = 'api\action\contact\CreateAction';

        return $actions;
    }


}
